<div align="center" class="information"></div>
<table class="titrepage" width="1000px">
    <tr>              
        <?php if($this->session->userdata('level')==1){?>              
        <td>
            <a class="titrea" href="<?php echo site_url('avis_admin/list_admins')?>">List admins</a>
            | <a class="titrea" href="<?php echo site_url('avis_admin/add_admin')?>">Add admin</a>
        </td>
        <?php }?>
        <td>
            <a class="titrea" href="<?php echo site_url('avis_admin/list_users')?>">List users</a>
            | <a class="titrea" href="<?php echo site_url('avis_admin/add_user')?>">Add user</a>
        </td>
    </tr>
</table>
<br/>
<!--register Form-->
<form id="register" method="post" action="<?php echo site_url('avis_admin/add_user')?>">
    <table border=0 align="center" width="80%">
        <tr>
            <td width="20%">Firstname :</td>
            <td width="40%"><input type="text" name="firstname" size="50" value="<?php echo set_value('firstname');?>"/></td>
            <td width="40%"><span class="err"><?php echo form_error('firstname');?></span></td>
        </tr>
        <tr>
            <td width="20%">Lastname :
            <td width="40%"><input type="text" name="lastname" size="50" value="<?php echo set_value('lastname');?>"/></td>
            <td width="40%"><span class="err"><?php echo form_error('lastname');?></span></td>
        </tr>
        <tr>
            <td width="20%">Email :</td>
            <td width="40%"><input type="text" name="email" size="50" value="<?php echo set_value('email','');?> "/></td>
            <td width="40%"><span class="err"><?php echo form_error('email');?></span></td>
        </tr>
        <tr>
            <td width="20%">Username :</td>
            <td width="40%"><input type="text" name="username" size="50" value="<?php echo set_value('username');?>" /></td>
            <td width="40%"><span class="err"><?php echo form_error('username');?></span></td>
        </tr>
        <tr>
            <td width="20%">Password :</td>
            <td width="40%"><input type="password" size="50" name="password"/></td>
            <td width="40%"><span class="err"><?php echo form_error('password');?></span></td>
        </tr>
        <tr>
            <td width="20%">Confirm-Password :</td>
            <td width="40%"><input type="password" size="50" name="confirmpassword"/></td>
            <td width="40%"><span class="err"><?php echo form_error('confirmpassword');?></span></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input name="register" id="submit1" type="submit" value="Register"/><br/><br/>
            </td>
        </tr>
     </table>              
</form>
